package com.devunion.bogdan.view.actions;

import com.devunion.bogdan.view.project.actions.*;
import com.devunion.bogdan.model.project.PaperType;

import javax.swing.*;

/**
 * @author Viktar Liaskovich
 */
public class TreePopupActionManager {
    private static TreePopupActionManager instance = new TreePopupActionManager();

    public static TreePopupActionManager getInstance() {
        return instance;
    }

    private TreePopupActionManager() {
    }

    public final Action addBookAction = new AddPaperAction(PaperType.BOOK);
    public final Action addLetterAction = new AddPaperAction(PaperType.LETTER);
    public final Action addDocumentAction = new AddPaperAction(PaperType.DOCUMENT);
    public final Action addArticleAction = new AddPaperAction(PaperType.ARTICLE);
    public final Action addOtherAction = new AddPaperAction(PaperType.OTHER);

    public final Action addPageAction = new AddPageAction();
    public final Action removePageAction = new RemovePageAction();

//    public final Action newModuleAction = ProjectActionFactory.createAction(ProjectActionFactory.NEW_MODULE_ACTION);
//    public final Action newFileAction = ProjectActionFactory.createAction(ProjectActionFactory.NEW_FILE_ACTION);
//    public final Action deleteAction = ProjectActionFactory.createAction(ProjectActionFactory.DELETE_ACTION);
}
